#include <iostream>
#include "rectangle.h"

using namespace std;

int main() {
    double len = 0.0,wid = 0.0;
    cout << "请输入矩形的长: ";
    cin >> len;

    cout << "请输入矩形的宽: ";
    cin >> wid;

    // 创建 Rectangle 类的对象
    rectangle rect(len,wid);

    //调用成员
    double area = rect.get_area();
    double perimeter = rect.get_perimeter();

    cout << "面积："<< area << endl;
    cout << "周长："<< perimeter << endl;




    return 0;
}